- 双语例句 更多例句
We also used an instance variable to store a reference to the mock object.
我们还使用了实例变量来存储对模仿对象的引用。
互联网摘选
视图类有一个专用的实例变量@main view component,它引用相应的Swing类。
互联网摘选
除非一个实例变量被标注修饰,否则他将成为一个瞬时变量。
互联网摘选
Note that the validation logic is hardcoded into the method before the instance variable is set.
注意,在设置实例变量之前,验证逻辑被硬编码到方法中。
互联网摘选
Q: What is the default value of an object reference declared as an instance variable?
一个对象的缺省值是什么,当以一个实例变量作为参考时?
互联网摘选
This time, you need to add an instance variable to actually remember the state.
现在,应该添加一个实例变量来实际记忆状态。
互联网摘选
You can store a collection of orders in an instance variable for the appropriate customer.
您可以在适当客户的实例变量中存储订单集合。
互联网摘选
The controller sets up the@ person instance variable for the view to use.
控制器设置视图使用的@person实例变量。
互联网摘选
Note that this operation cannot be achieved reliably by making the value instance variable volatile.
注意,通过使值实例变量成为可变变量并不能可靠地完成这项操作。
互联网摘选
在设计过程中,巧妙地使用了一个窗口实例变量和一个条件语句,解决了图片闪烁的问题。
互联网摘选
由于Ruby并不需要声明实例变量,因此建模实例变量最简单的方式就是使用散列。
互联网摘选
这个简单的想法能为每个实例变量省掉3~6行的setter与getter方法代码。
互联网摘选
这有可能会导致对回调是否运行在正确的对象上下文内的检测滞后(例如,对象实例变量的值不正确)。
互联网摘选
With each key, an instance variable is created on the object with that name and data.
对于每个键,会在对象上创建一个具有对象名称和数据的实例变量。
互联网摘选
如果您在控制器中创建了一个实例变量,那么这个变量就可以直接在视图模板中使用。
互联网摘选
构造器会把该实例变量(即信用限制)设为一个参数。
互联网摘选
如果您显式设置了名为prototype的实例变量,JavaScript就会在此实例中寻找任何未定义的实例变量或属性。
互联网摘选
You'll set a prototype instance variable to point to the parent in the inheritance chain.
方法是设置prototype实例变量使其指向继承链的父。
互联网摘选
使用实例变量count中的内容呈现了一个标题,该变量包含了一个简单计数器的值。
互联网摘选
因此,建议的编程实践是在Portlet的init方法中查找服务,并将其存储在一个实例变量中。
互联网摘选
This is the instance variable you were previously asked to provide a name for.
这就是之前要求您输入名称的实例变量。
互联网摘选
A select_card method picks a card at random and assigns it the@ current_card instance variable.
select card方法随机选取一张卡片,并将它赋给@current card实例变量。
互联网摘选
The return value from each method call is assigned to an instance variable for the class.
将每个方法调用的返回值赋给该类的一个实例变量。
互联网摘选
respond to方法接受单个代码块,并传递一个实例变量(标为wants)到代码块。
互联网摘选
Suppose the getX() method only answers the value of an instance variable.
假定getX()方法只提供某一实例变量的值。
互联网摘选
请注意,关键字“def”在这儿作为一个实例变量的修饰符使用,指明变量是属性。
互联网摘选
- 相关词组
- operating variable操作变量
- dependent variable因变量,应变数,他变数;因变数;
- nonstochastic explanatory variable非随机解释变量
- offset variable位移变量
- macrotime variable宏时变量
- antithetic variable对偶变量;
- voltage variable brightness diode随电压变化亮度的二极管
- variable number of tandem repeats串联重复;串联重复序列;可变数目串联重复序列
- controlled variable控制量;可控变量;可调量;调节量;
- Average variable cost平均可变成本,平均变动成本;
- adjoint variable伴随变量
- independent variable自变数,自变量;
- flagged variable带标记变元;带标记变元[变数];含标记变量
- external variable外变量;
- highly variable chimeric高度易变的嵌合体
- bounded variable有界变数;
- variable annuity可变年金;变额年金
- for instance例如;比如;
- nonbasic variable非基本变量
- voltage variable capacitance diode压控变容二极管
- 今日热词
- 热门搜索
- violent adj.暴力的,粗暴的;强烈的,剧烈的;鲜艳夺目的;
- maplestory n.冒险岛;美服冒险岛;冒险岛官方网站;冒险岛单机;枫之谷
- blind adj.失明的;盲目的,轻率的;供盲人用的;隐蔽的;vt.弄瞎,使失明;蒙蔽,欺瞒;使变暗;使昏聩;
- Apple n. 苹果;苹果树;苹果公司;
- my uncle 叔叔;舅舅;叔父;伯父;我的叔叔;我的舅舅
- make up for 弥补,补偿(令人不快的遭遇或损失);补苴;
- family name n.姓;
- small adj.小的;难为情的;低级的,卑劣的;细微的,微弱的;adv.小小地;卑鄙地;
- magic art 魔术
- pipe n.管道;烟斗;管乐器;音管;v.用管子输送;用线路系统传输;用管乐器演奏;用尖嗓子说;裱花;
- redirect vt.使改变方向;改寄,改变投递方向;(以新的方式或目的)重新使用;使改变路线(或航线);把(钱或精力)改用在别处;更改(信件等)上的地址adj.〈律〉再直接(询问)的
- protective adj.防护的,保护的;(对人)关切保护的,爱护的;出于(对…的)保护;有贸易保护倾向的,实行关税保护的n.保护物,防护物